package com.neusoft.yuejian_01.service;



import com.neusoft.yuejian_01.javabean.IsMatchReg;
import com.neusoft.yuejian_01.javabean.MatchBean;
import com.neusoft.yuejian_01.javabean.MatchRegBean;
import com.neusoft.yuejian_01.javabean.NoRegBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/10/2.
 */

public interface MatchService {

    //http://localhost/neu14_yuejian/API/Match/getMatchlist
    @GET("Match/getMatchlist")
    Call<List<MatchBean>> getMatchlist();
    //http://localhost/neu14_yuejian/API/Match/getMatchDetail/m_id/1
    @GET("Match/getMatchDetail")
    Call<MatchBean> getMatchDetail(@Query("m_id") String m_id);
    //http://localhost/neu14_yuejian/API/Match/addMatchRegistration/u_id/1/m_id/4
    @GET("Match/addMatchRegistration")
    Call<MatchRegBean> addMatchRegistration(@Query("u_id") String u_id,
                                            @Query("m_id") String m_id);
    //http://localhost/neu14_yuejian/API/Match/getIsReg/u_id/4/m_id/1
    @GET("Match/getIsReg")
    Call<IsMatchReg> getIsReg(@Query("u_id") String u_id,
                              @Query("m_id") String m_id);
    //http://localhost/neu14_yuejian/API/Match/getIsNotReg/u_id/4/m_id/2
    @GET("Match/getIsNotReg")
    Call<NoRegBean> getIsNotReg(@Query("u_id") String u_id,
                                @Query("m_id") String m_id);
    //http://localhost/neu14_yuejian/API/Match/getMatchRegistration/u_id/1/m_id/1
    @GET("Match/getMatchRegistration")
    Call<MatchRegBean> getMatchRegistration(@Query("u_id") String u_id,
                                            @Query("m_id") String m_id);

}
